From: Dan Winship Date: Tue, 23 Feb 2010 16:13:58 +0000 (-0500) Subject: [StThemeNode] allow "background-gradient-direction: none" X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~10397 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=ef4c9b6f1f31a6e8efbbfaaf6baf6875a55e4fd9;p=gnome-shell.git [StThemeNode] allow "background-gradient-direction: none" this lets a more-specific CSS rule turn off the gradient inherited from a less-specific rule https://bugzilla.gnome.org/show_bug.cgi?id=610856 --- diff --git a/src/st/st-theme-node.c b/src/st/st-theme-node.c index 8875378f1..0449d794a 100644 --- a/src/st/st-theme-node.c +++ b/src/st/st-theme-node.c @@ -1394,6 +1394,10 @@ ensure_background (StThemeNode *node) { node->background_gradient_type = ST_GRADIENT_RADIAL; } + else if (strcmp (term->content.str->stryng->str, "none") == 0) + { + node->background_gradient_type = ST_GRADIENT_NONE; + } else { g_warning ("Unrecognized background-gradient-direction \"%s\"",